package cn.stylefeng.guns.modular.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 出入库
 * </p>
 *
 * @author wusonghe
 * @since 2019-08-31
 */
@TableName("info_storage")
@Data
public class Storage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 盘点ID
     */
    @TableId(value = "storage_id", type = IdType.AUTO)
    private Integer storageId;


    /**
     * 制单人
     */
    @TableField("worker")
    private String worker;

    /**
     * 状态
     */
    @TableField("status")
    private Integer status;

    /**
     * 类型
     */
    @TableField("type")
    private Integer type;
    /**
     * 状态描述
     */
    @TableField("status_desc")
    private String statusDesc;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 物料
     */
    @TableField("materiel_list")
    private String materielList;

    /**
     * 产品
     */
    @TableField(value = "product_list")
    private String productList;


    //api

    @TableField(value = "pood_id")
    private Integer poodId;

    @TableField(value = "materiel_number")
    private Integer materielNumber;

    @TableField(value = "materiel_id")
    private String materielId;

    @TableField(value = "materiel_type")
    private Integer materielType;

    @TableField(value = "materiel_name")
    private String materielName;

    @TableField(value = "materiel_code")
    private String materielCode;

    @TableField(value = "materiel_unit")
    private String materielUnit;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;


}
